<?php
require_once('configure.php');
$data_id = isset($_GET['_value']) ? (int) $_GET['_value'] : 0 ;
$query ="SELECT * FROM pendidikan WHERE level_pendidikan_id =". $data_id;
 
$datas = array();
$res = my_query($query);
$datas[] = array(0 =>'');
while( $re =my_fetch_array($res )){

	$datas[] = array($re['pendidikan_id'] => $re['label']. ' | ' .$re['major']);
	//echo ucfirst( $re['camat']) . ", ".ucfirst( $re['kota'])."\r\n";
}
if($data_id  == 0) 
	$datas[] = array( 0 => 'Silakan pilih devisi');

 
	echo json_encode( $datas );

?>